package com.situ.mall.mapper;

import com.situ.mall.pojo.Category;
import com.situ.mall.pojo.query.CategoryQuery;
import com.situ.mall.pojo.vo.CategoryVO;

import java.util.List;

public interface CategoryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

    List<Category> selectTopCategoryList();

    List<Category> selectSecondCategoryList();

    List<Category> selectSecondCategoryById(Integer parentId);

    List<Category> selectByPage(CategoryQuery categoryQuery);

    CategoryVO selectVOById(Integer id);
}